<div class="col-md-12" style="margin-top: 15px;"><div class="message"></div></div>
<div class="col-md-6">
    <?php if( !empty($product_image) ) : ?>
        <?php if( count($product_image) > 1 ) : ?>
            <div class="prod-image-<?php echo $product_id; ?> flexslider prod-img-slide">
                <ul class="slides">            
                <?php foreach($product_image as $img) : ?>
					<li><img src="<?php echo base_url() . $img->path; ?>" alt="<?php echo $img->title; ?>" /></li>
                <?php endforeach ?>
                </ul>                
            </div>
        <?php else : ?>
            <?php foreach($product_image as $img) : ?>
                <?php echo ( !empty($img->path) && file_exists($img->path)  ? '<img src="'. base_url() . $img->path .'" alt="No Image" class="prod_img" />' : '<img src="' . base_url('content/product/noimage.jpg') . '" alt="No Image" class="prod_img" />' ); ?>
            <?php endforeach ?>
        <?php endif ?>
    <?php else : ?>
        <img src="<?php echo base_url('content/product/noimage.jpg'); ?>" alt="No Image" class="prod_img" />
    <?php endif ?>

    <!--
    <div id="product_image_'.$row->product_id.'">
		<div u="slides" class="slides">
            <div>
                <img u="image" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img" />
                <img u="thumb" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img_thumb" />
            </div>
            <div>
                <img u="image" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img" />
                <img u="thumb" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img_thumb" />
            </div>
            <div>
                <img u="image" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img" />
                <img u="thumb" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img_thumb" />
            </div>
            <div>
                <img u="image" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img" />
                <img u="thumb" src="'. base_url() . $row->image .'" alt="'. $row->product_name .'" class="prod_img_thumb" />
            </div>
        </div>
    </div>
    -->
</div>
<div class="col-md-6">
    <div class="quote"><blockquote><h3 style="margin: 0px 0 0 0 !important;"><?php echo $product->product_name; ?></h3></blockquote></div>
    <?php echo $product->stock_text; ?>
    <div style="margin-bottom: 20px;"><span class="text-primary h5">Rp. <?php echo number_format($product->price, 0, "", "."); ?></span></div>
    <p class="text-small prod_desc"><?php echo ( $product->product_desc == '' ? 'Tidak ada deskripsi product' : $product->product_desc ); ?></p>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group input-group">
                <input <?php echo ($product->stock == 0 ? 'disabled="disabled"' : ''); ?> type="number" name="qty" class="qty form-control" autocomplete="off" onkeypress="return isNumber(event)" min="0" step="1" placeholder="Jumlah" />
            </div>
        </div>
        <div class="col-sm-6"><?php echo $product->btn_buy; ?></div>
    </div>
</div>